/*
 * Scenario.cpp
 *
 *  Created on: Oct 4, 2011
 *      Author: nicoabie
 */

#include "Scenario.h"

Scenario::Scenario() {
	this->name = "";
	this->background = "";
	this->elements = NULL;
}

Scenario::Scenario(std::string name, std::string background, std::list<ScenarioElement*>* elements){
	this->name = name;
	this->background = background;
	this->elements = elements;
}

Scenario::~Scenario() {
	if (elements != NULL){
		for(it_element = elements->begin(); it_element != elements->end(); ++it_element){
			delete (*it_element);
		}
		delete elements;
	}
}

void Scenario::setBackground(std::string background)
{
	this->background = background;
}

void Scenario::setElements(std::list<ScenarioElement*> *elements)
{
	this->elements = elements;
}

std::string Scenario::getName(){
	return this->name;
}

std::string Scenario::getBackground()
{
	return this->background;
}

std::list<ScenarioElement*> *Scenario::getElements()
{
	return this->elements;
}
